//
//  KeepLiveService.h
//  VidoarDemo
//
//  Created by xm on 2025/6/18.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, KeepLiveService_Status){
    KeepLiveService_Status_none = 0,
    KeepLiveService_Status_doing = 1
    
};



@interface KeepLiveService : NSObject

@property(nonatomic, assign) NSInteger duration;
@property(nonatomic, assign) NSInteger lastDuration;
@property(nonatomic, assign) KeepLiveService_Status status;
@property(nonatomic, assign) KeepLiveService_Mode mode;


+ (instancetype)share;

-(void) switchMode:(KeepLiveService_Mode)mode;
-(void) start;
-(void) stop;
-(void) run;



@end

NS_ASSUME_NONNULL_END
